package model;

import xna.android.Speed;
import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Player {
	private Bitmap bitmap;		
	private int x;				
	private int y;				
	private Speed speed;
	
	public Player(Bitmap bitmap, int x, int y)
	{
		this.bitmap = bitmap;
		this.x = x;
		this.y = y;
		speed = new Speed(2.0f, 2.0f);
		
	}
	
	public Bitmap getBitmap()
	{
		return bitmap;
	}
	
	public void setBitmap(Bitmap bitmap)
	{
		this.bitmap = bitmap;
	}
	
	public int getX()
	{
		return x;
	}
	
	public void setX(int x)
	{
		this.x = x;
	}
	
	public int getY()
	{
		return y;
	}
	
	public void setY(int y)
	{
		this.y = y;
	}
	
	public void draw(Canvas canvas)
	{
		canvas.drawBitmap(bitmap, x - (bitmap.getWidth() / 2), y - (bitmap.getHeight() / 2), null);


	}
	
}
